<?php


namespace app\admin\validate;


use think\Validate;

class Specs extends Validate
{
    protected $rule = [
        'specs_id' => 'require|integer',
        'name' => 'require',
    ];


    protected $scene = [
        'list' => [
            'specs_id',
        ],

        'add' => [
            'specs_id',
            'name'
        ]
    ];
}